
/**
 * 校园分享模块接口
 */


import request from "@/utils/request";
// 校园分享
export function GetShare(params) {
    return request({
        url: '/api/CampusSharing/CampusSharingXiaoQu',
        method: 'get',
        params: params
    })
}

// 我的分享
export function GetMySharing(params) {
    return request({
        url: '/api/CampusSharing/CampusSharingMyAndSearch',
        method: 'get',
        params: params
    })
}

// 点赞
export function GiveLike(data) {
    return request({
        url: '/api/CampusSharing/PostInsertLikeForm',
        method: 'post',
        data: data
    })
}

// 删除帖子
export function Delete(data) {
    return request({
        url: '/api/CampusSharing/CampusSharingMyAndDelete',
        method: 'delete',
        params: data
    })
}
//发布评论
export function SendComment(data) {
    return request({
        url: '/api/CampusSharing/CampusSharingSendComment',
        method: 'post',
        data: data
    })
}

//评论模块
//获取评论

export function CommentList(data) {
    return request({
        url: '/api/CampusSharing/CommentList',
        method: 'post',
        data: data
    })
}
//删除评论
export function DeleteComment(data) {
    return request({
        url: '/api/CampusSharing/CommentDelete',
        method: 'delete',
        data: data
    })
}

